package com.njlime.cms.repository.app;

import com.njlime.cms.entities.Community;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Map;

/**
 * Created by Dean on 2017-10-10.
 */
public interface AppCommunityDao extends JpaRepository<Community, Integer>,JpaSpecificationExecutor<Community> {
    Map<String, Object> get(int id, Integer unit_id);
    PageBean list(PageBean pageBean, Community info);
    int updateReading(int id, Integer unit_id);
    void updateCommentMum(Integer communityId, int num);
    void fabulousNumUpdate(Integer id, int num);
}
